<!DOCTYPE html>
<html lang="en" ng-app="saleApp">
<head>
    <meta charset="UTF-8">
    <title>66邻里赶大集</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta name="format-detection" content="telephone=no"/>
    <link href="css/sale.css" rel="stylesheet" type="text/css"/>
    <script src="lib/jquery-2.1.1.min.js" type="text/javascript"></script>
    <script src="lib/angular/angular.min.js" type="text/javascript"></script>
    <script src="lib/angular/angular-route.min.js" type="text/javascript"></script>
    <script src="lib/angular/angular-resource.min.js" type="text/javascript"></script>
    <script src="js/sale.js"></script>
    <script src="js/filters.js"></script>

</head>
<body class="index" ng-controller="SaleListCtrl">
<div class="wrapper">
    <div class="layout">
        <img style="width:100%;" src="images/sale_banner.jpg">

        <div id="banner" style="width: 96%;margin: auto;margin-top: 1%;display: none" ng-click="goToTopic()">
            <img style="display: block;" src="images/sale_top.jpg">
        </div>

        <ul class="clearfix goodslist ng-cloak">
            <li ng-repeat="item in goodsList" ng-style="{width:goodsImgW}">
                <a href="javascript:;" ng-click="goToDetail(item.objId,item.createdBy)">
                    <div class="good-img-w">
                        <img ng-style="{height:goodsImgH}" ng-src="{{item.pic}}">

                        <div class="saled-icon-w">
                            <img ng-if="item.dealStatus == 1" src="images/deal.png"/>
                            <img ng-if="item.dealStatus != 1&&item.saleNumber!=null" src="images/zhuan.png"/>
                            <!--<span class="vertical-l"></span>-->
                            <!--<span class="saled-icon">已售</span>-->
                        </div>
                    </div>
                    <p class="title">{{item.title}}</p>

                    <p><span class="nowprice"><em>¥</em>{{item.type==2?'免费':item.presentPrice}} <span
                            ng-bind="name"></span></span>
                        <del class="preprice" ng-if="item.type==1 && item.originalPrice != 0"><em>原价 ¥</em>{{item.originalPrice}}
                        </del>
                    </p>
                    <p class="clearfix"><span class="fl range">{{item.userCommunity?item.userCommunity:'距离'+item.distance}}</span><span
                            class="time fr">{{item.releaseDate | dateFormat}}</span>
                    </p>
                </a>
            </li>
        </ul>
        <p class="loadingMore"></p>
    </div>
    <img id="sale_end" style="width: 100%;position: absolute;bottom: 0;display:none;" src="images/sale_end.jpg"/>

</div>
<div class="refresh" ng-click="refresh()">
    <img src="images/refresh.png"/>
</div>
<div class="sale_notify">
    <ul ng-if="notify.type==1" class="icon clearfix">
        <li><img src="images/user_icon.png">{{notify.nickName}}</li>
        <li style="text-align: right"><img src="images/address_icon.png">{{notify.community}}</li>
    </ul>

    <p ng-if="notify.type==2" class="icon"><img src="images/horn_icon.png">赶集实况战报</p>

    <p class="msg">{{notify.msg}}</p>
</div>
</body>
</html>

